import request from "@/utils/request";

// 查询交割单列表
export function getDeliveryOrderList(params) {
  return request({
    url: "/enterprise/contract/deliveryOrder/list",
    method: "get",
    params
  })
}

// 获取预览电子合同内容链接
export function getPreviewUrl(data) {
  return request({
    url: "/enterprise/contract/deliveryOrder/previewUrl",
    method: "post",
    data,
  });
}

// 签署合同
export function signContract(data) {
  return request({
    url: "/enterprise/contract/deliveryOrder/signing",
    method: "put",
    data,
  });
}

// 新增交割单信息
export function addDeliveryOrder(data) {
  return request({
    url: "/enterprise/contract/deliveryOrder",
    method: "post",
    data,
  });
}

// 重新发起交割单合同
export function reissueContract(data) {
  return request({
    url: "/enterprise/contract/deliveryOrder/relaunch",
    method: "post",
    data,
  });
}
